package com.explorex.infra.puma.gateway.netty.common;

import lombok.Data;

@Data
public class DeviceInfo implements DeviceBase {
    private String deviceId;
    private String os;
    private String osVersion;
    private String deviceName;
    private String appVersion;
    private String fingerprint;
    private String platform;




    private static DeviceInfo getDeviceInfo(String appVersion, String deviceName, String os, String osVersion, String fingerprint, String platform, String deviceId) {
        DeviceInfo deviceInfo = new DeviceInfo();
        deviceInfo.setAppVersion(appVersion);
        deviceInfo.setDeviceName(deviceName);
        deviceInfo.setOs(os.toLowerCase()); // 实际发现存在android Android，做统一处理
        deviceInfo.setOsVersion(osVersion);
        deviceInfo.setFingerprint(fingerprint);
        deviceInfo.setPlatform(platform);
        deviceInfo.setDeviceId(deviceId);
        return deviceInfo;
    }
}
